package com.ayu.shortlink.settlement.service;

import com.ayu.shortlink.settlement.dao.entity.PayDO;
import com.ayu.shortlink.settlement.dto.base.PayRequest;
import com.ayu.shortlink.settlement.dto.resp.PayRespDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

public interface UserPayService extends IService<PayDO> {

    /**
     * 用户创建支付订单
     * @param request 支付请求参数
     * @return
     */
    PayRespDTO createUserPay(PayRequest request);

    /**
     * 支付宝回调接口
     * @param request HttpRequest
     * @return 成功-success 失败-failure(失败会触发重试)
     */
    String alipayNotify(HttpServletRequest request);
}
